Answer:

Choice A is correct. The print-a-line section prints ten stars on one line. This happens five times.

Inner and Outer Loops

The "print a line of stars" loop is called an inner loop because it is the loop body of another loop. The "do something five times" loop is called an outer loop because it is not inside any other loop.

Here is a slight modification of the program:

' Do the loop body seven times
FOR LINE = 1 TO 7
  
  ' Print NUM stars in a row
  LET NUM = 3
  PRINT
  FOR STARS = 1 TO NUM
    PRINT "*";
  NEXT STARS
  
NEXT LINE
'
END

QUESTION 20:

Here are two possible outputs of the program. Which one is correct?

Choice A:                   Choice B:

***                         *******
***                         *******
***                         *******
***                          
***                          
***                          
***